package com.aliyun.messagemgt.dto.job.config;


import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 任务状态变更实体类
 * @author Administrator
 */
public class ScheduleJobConfigStatusDto implements Serializable {
    private static final long serialVersionUID = -7885947151000898456L;
    private Integer id;

    @NotNull(message = "任务名称不能为空")
    private String jobName;

    @NotNull(message = "任务组不能为空")
    private String jobGroup;

    @NotNull(message = "任务状态不能为空")
    private Integer status;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getJobName() {
        return jobName;
    }

    public void setJobName(String jobName) {
        this.jobName = jobName;
    }

    public String getJobGroup() {
        return jobGroup;
    }

    public void setJobGroup(String jobGroup) {
        this.jobGroup = jobGroup;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status ;
    }

    @Override
    public String toString() {
        return "ScheduleJobConfig{" +
                "id=" + id +
                ", jobName='" + jobName + '\'' +
                ", jobGroup='" + jobGroup + '\'' +
                ", status=" + status +
                '}';
    }
}